﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace RainyPWS.Web
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bool isLogin = Request.IsAuthenticated;
            pLine.Visible = isLogin;
            hlink1.Visible = isLogin;
            hlink2.Visible = isLogin;
            hlink3.Visible = isLogin;
            lbtnLogout.Visible = isLogin;
        }

        protected void lbtnLogout_click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Response.Redirect("/default.aspx");
        }
    }
}
